package cn.allspark.entity.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 用户信息
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserPO extends UserRequest{

    public UserPO(UserRequest userRequest) {
        this.setName(userRequest.getName());
        this.setClassName(userRequest.getClassName());
        this.setQqNumber(userRequest.getQqNumber());
        this.setPhoneNumber(userRequest.getPhoneNumber());
        this.setIntention(userRequest.getIntention());
        this.setCLevel(userRequest.getCLevel());
        this.setRemarks(userRequest.getRemarks());
        this.setFirstTime(userRequest.getFirstTime());
        firstStatus = 0;
        secondStatus = 0;
        thirdStatus = 0;
    }
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 一面状态：0-未面试、1-面试失败、2-面试成功
     */
    private Integer firstStatus;

    /**
     * 二面状态：0-未面试、1-面试失败、2-面试成功
     */
    private Integer secondStatus;

    /**
     * 三面状态：0-未面试、1-面试失败、2-面试成功
     */
    private Integer thirdStatus;

    /**
     * 填写申请表的时间
     */
    private Date createTime;

}
